package org.apache.zookeeper.server.quorum.flexible;

import org.apache.zookeeper.server.QuorumPeer;

import java.util.Map;
import java.util.Set;

public interface QuorumVerifier {
    long getWeight(long id);
    boolean containsQuorum(Set<Long> set);
    long getVersion();
    void setVersion(long ver);
    Map<Long, QuorumPeer.QuorumServer> getAllMembers();
    Map<Long, QuorumPeer.QuorumServer> getVotingMembers();

}
